﻿import Vue from 'vue'
import App from './App.vue'
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
import axios from 'axios'
import router from "@/router";
import store from "@/store";
import mavonEditor from 'mavon-editor'
import 'mavon-editor/dist/css/index.css'


//可以给axios的ajax请求设置统一的主机和端口号
axios.defaults.baseURL = "/api";
axios.defaults.timeout = 5000;
//将axios这个对象添加到Vue的原型对象中，在使用的时候就只需要使用this.对象名就可以了
Vue.prototype.$http = axios

Vue.config.productionTip = false

Vue.use(ElementUI);
// use
Vue.use(mavonEditor)
new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
 